<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FabGL: ST7789Controller.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FabGL
   </div>
   <div id="projectbrief">ESP32 Display Controller and Graphics Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_s_t7789_controller_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">ST7789Controller.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_s_t7789_controller_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">  Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - &lt;http://www.fabgl.com&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">  Copyright (c) 2019-2020 Fabrizio Di Vittorio.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">  All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">  This file is part of FabGL Library.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">  FabGL is free software: you can redistribute it and/or modify</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">  it under the terms of the GNU General Public License as published by</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">  the Free Software Foundation, either version 3 of the License, or</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">  (at your option) any later version.</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">  FabGL is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">  GNU General Public License for more details.</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">  You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">  along with FabGL.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;SPI.h&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;freertos/FreeRTOS.h&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;esp32-hal.h&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;driver/spi_master.h&quot;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="fabglconf_8h.html">fabglconf.h</a>&quot;</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="fabutils_8h.html">fabutils.h</a>&quot;</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="displaycontroller_8h.html">displaycontroller.h</a>&quot;</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacefabgl.html">fabgl</a> {</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classfabgl_1_1_s_t7789_controller.html">   74</a></span>&#160;<span class="keyword">class </span><a class="code" href="classfabgl_1_1_s_t7789_controller.html">ST7789Controller</a> : <span class="keyword">public</span> GenericDisplayController {</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <span class="comment">// unwanted methods</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <a class="code" href="classfabgl_1_1_s_t7789_controller.html">ST7789Controller</a>(<a class="code" href="classfabgl_1_1_s_t7789_controller.html">ST7789Controller</a> <span class="keyword">const</span>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  <span class="keywordtype">void</span> operator=(<a class="code" href="classfabgl_1_1_s_t7789_controller.html">ST7789Controller</a> <span class="keyword">const</span>&amp;)   = <span class="keyword">delete</span>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <a class="code" href="classfabgl_1_1_s_t7789_controller.html">ST7789Controller</a>();</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  ~<a class="code" href="classfabgl_1_1_s_t7789_controller.html">ST7789Controller</a>();</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#a9995071b752bf5d941b12066e7707cae">begin</a>(SPIClass * spi, gpio_num_t DC, gpio_num_t RESX = GPIO_UNUSED, gpio_num_t CS = GPIO_UNUSED);</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#a9995071b752bf5d941b12066e7707cae">begin</a>(SPIClass * spi, <span class="keywordtype">int</span> DC, <span class="keywordtype">int</span> RESX = -1, <span class="keywordtype">int</span> CS = -1);</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#a9995071b752bf5d941b12066e7707cae">begin</a>(<span class="keywordtype">int</span> SCK, <span class="keywordtype">int</span> MOSI, <span class="keywordtype">int</span> DC, <span class="keywordtype">int</span> RESX, <span class="keywordtype">int</span> CS, <span class="keywordtype">int</span> host);</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;  <span class="keywordtype">void</span> end();</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#af8654e6ae31a0c196275274e3ff242f2">setResolution</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> * modeline, <span class="keywordtype">int</span> viewPortWidth = -1, <span class="keywordtype">int</span> viewPortHeight = -1, <span class="keywordtype">bool</span> doubleBuffered = <span class="keyword">false</span>);</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#ae9fe36cfadae1c50e2198d484dc1d6dd">suspendBackgroundPrimitiveExecution</a>();</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#a098b59863c47b44466a290cab12a07fd">resumeBackgroundPrimitiveExecution</a>();</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="classfabgl_1_1_s_t7789_controller.html#ac131174a70010ee80caf11844fdd822c">  170</a></span>&#160;  <a class="code" href="group___enumerations.html#gacafd29e9adc4dc4055558e61fd4599c9">NativePixelFormat</a> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#ac131174a70010ee80caf11844fdd822c">nativePixelFormat</a>() { <span class="keywordflow">return</span> <a class="code" href="group___enumerations.html#ggacafd29e9adc4dc4055558e61fd4599c9af5b6b419fa27f5fa080c74870b404358">NativePixelFormat::RGB565BE</a>; }</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classfabgl_1_1_s_t7789_controller.html#a8898066d3c8344c336c523c932a940e4">  173</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#a8898066d3c8344c336c523c932a940e4">getViewPortWidth</a>()  { <span class="keywordflow">return</span> m_viewPortWidth; }</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classfabgl_1_1_s_t7789_controller.html#a37416675309b62ed2b7a3f17efba4e60">  176</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#a37416675309b62ed2b7a3f17efba4e60">getViewPortHeight</a>() { <span class="keywordflow">return</span> m_viewPortHeight; }</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="classfabgl_1_1_s_t7789_controller.html#ae46ddfa7006c4ed0585837ea78deff12">  179</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#ae46ddfa7006c4ed0585837ea78deff12">getScreenWidth</a>()    { <span class="keywordflow">return</span> m_screenWidth; }</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="classfabgl_1_1_s_t7789_controller.html#ace68c596a133c7129e76c704a8df8570">  182</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#ace68c596a133c7129e76c704a8df8570">getScreenHeight</a>()   { <span class="keywordflow">return</span> m_screenHeight; }</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#acf840900c37cf9c53d6a64a8666658ae">setScreenCol</a>(<span class="keywordtype">int</span> value);</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#a6a8defc198bdeab89d5a4f85c46496cf">setScreenRow</a>(<span class="keywordtype">int</span> value);</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classfabgl_1_1_s_t7789_controller.html#a91c5eedda08a22c1cff46d29d66d6d76">  207</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#a91c5eedda08a22c1cff46d29d66d6d76">screenCol</a>() { <span class="keywordflow">return</span> m_screenCol; }</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="classfabgl_1_1_s_t7789_controller.html#a8fbc059860a6b5e9c8ce85ae1bb78c38">  214</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#a8fbc059860a6b5e9c8ce85ae1bb78c38">screenRow</a>() { <span class="keywordflow">return</span> m_screenRow; }</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;  <span class="keywordtype">void</span> readScreen(<a class="code" href="structfabgl_1_1_rect.html">Rect</a> <span class="keyword">const</span> &amp; rect, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> * destBuf);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classfabgl_1_1_s_t7789_controller.html#a7f4f19414b09ba852822a7e73f01b28d">  221</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_s_t7789_controller.html#a7f4f19414b09ba852822a7e73f01b28d">reset</a>() { hardReset(); softReset(); }</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;  <span class="keywordtype">int</span> getBitmapSavePixelSize() { <span class="keywordflow">return</span> 2; }</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;  <span class="keywordtype">void</span> setupGPIO();</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;  <span class="keywordtype">void</span> hardReset();</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;  <span class="keywordtype">void</span> softReset();</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;  <span class="keywordtype">void</span> sendScreenBuffer(Rect updateRect);</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;  <span class="keywordtype">void</span> writeCommand(uint8_t cmd);</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  <span class="keywordtype">void</span> writeByte(uint8_t <a class="code" href="displaycontroller_8h.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a>);</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;  <span class="keywordtype">void</span> writeWord(uint16_t <a class="code" href="displaycontroller_8h.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a>);</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;  <span class="keywordtype">void</span> writeData(<span class="keywordtype">void</span> * <a class="code" href="displaycontroller_8h.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a>, <span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;  <span class="keywordtype">void</span> SPIBegin();</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;  <span class="keywordtype">void</span> SPIEnd();</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;  <span class="keywordtype">void</span> SPIBeginWrite();</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;  <span class="keywordtype">void</span> SPIEndWrite();</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;  <span class="keywordtype">void</span> SPIWriteByte(uint8_t <a class="code" href="displaycontroller_8h.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a>);</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;  <span class="keywordtype">void</span> SPIWriteWord(uint16_t <a class="code" href="displaycontroller_8h.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a>);</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;  <span class="keywordtype">void</span> SPIWriteBuffer(<span class="keywordtype">void</span> * <a class="code" href="displaycontroller_8h.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a>, <span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;  <span class="keywordtype">void</span> allocViewPort();</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;  <span class="keywordtype">void</span> freeViewPort();</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">void</span> updateTaskFunc(<span class="keywordtype">void</span> * pvParameters);</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;  <span class="keywordtype">void</span> setPixelAt(PixelDesc <span class="keyword">const</span> &amp; pixelDesc, Rect &amp; updateRect);</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;  <span class="keywordtype">void</span> clear(Rect &amp; updateRect);</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;  <span class="keywordtype">void</span> drawEllipse(Size <span class="keyword">const</span> &amp; size, Rect &amp; updateRect);</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;  <span class="keywordtype">void</span> VScroll(<span class="keywordtype">int</span> scroll, Rect &amp; updateRect);</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;  <span class="keywordtype">void</span> HScroll(<span class="keywordtype">int</span> scroll, Rect &amp; updateRect);</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;  <span class="keywordtype">void</span> drawGlyph(Glyph <span class="keyword">const</span> &amp; glyph, GlyphOptions glyphOptions, RGB888 penColor, RGB888 brushColor, Rect &amp; updateRect);</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;  <span class="keywordtype">void</span> swapBuffers();</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;  <span class="keywordtype">void</span> invertRect(Rect <span class="keyword">const</span> &amp; rect, Rect &amp; updateRect);</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;  <span class="keywordtype">void</span> copyRect(Rect <span class="keyword">const</span> &amp; source, Rect &amp; updateRect);</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;  <span class="keywordtype">void</span> swapFGBG(Rect <span class="keyword">const</span> &amp; rect, Rect &amp; updateRect);</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;  <span class="keywordtype">void</span> absDrawLine(<span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#aacc253365e856de8781b525223af3c52">X2</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>, RGB888 color);</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;  <span class="keywordtype">void</span> rawFillRow(<span class="keywordtype">int</span> y, <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> x2, RGB888 color);</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;  <span class="keywordtype">void</span> rawFillRow(<span class="keywordtype">int</span> y, <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> x2, uint16_t pattern);</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;  <span class="keywordtype">void</span> swapRows(<span class="keywordtype">int</span> yA, <span class="keywordtype">int</span> yB, <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> x2);</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;  <span class="keywordtype">void</span> rawInvertRow(<span class="keywordtype">int</span> y, <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> x2);</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;  <span class="keywordtype">void</span> rawDrawBitmap_Native(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, Bitmap <span class="keyword">const</span> * bitmap, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount);</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;  <span class="keywordtype">void</span> rawDrawBitmap_Mask(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, Bitmap <span class="keyword">const</span> * bitmap, <span class="keywordtype">void</span> * saveBackground, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount);</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;  <span class="keywordtype">void</span> rawDrawBitmap_RGBA2222(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, Bitmap <span class="keyword">const</span> * bitmap, <span class="keywordtype">void</span> * saveBackground, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount);</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;  <span class="comment">// abstract method of DisplayController</span></div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;  <span class="keywordtype">void</span> rawDrawBitmap_RGBA8888(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, Bitmap <span class="keyword">const</span> * bitmap, <span class="keywordtype">void</span> * saveBackground, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount);</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;  SPIClass *         m_spi;</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;  spi_host_device_t  m_SPIHost;</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;  gpio_num_t         m_SCK;</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;  gpio_num_t         m_MOSI;</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;  gpio_num_t         m_DC;</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;  gpio_num_t         m_RESX;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;  gpio_num_t         m_CS;</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;  spi_device_handle_t m_SPIDevHandle;</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;  <span class="comment">// when double buffer is enabled the &quot;drawing&quot; view port is always m_viewPort, while the &quot;visible&quot; view port is always m_viewPortVisible</span></div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;  <span class="comment">// when double buffer is not enabled then m_viewPort = m_viewPortVisible</span></div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;  uint16_t * *       m_viewPort;</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;  uint16_t * *       m_viewPortVisible;</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;  int16_t            m_screenWidth;</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;  int16_t            m_screenHeight;</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;  int16_t            m_screenCol;</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;  int16_t            m_screenRow;</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;  int16_t            m_viewPortWidth;</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;  int16_t            m_viewPortHeight;</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;  TaskHandle_t       m_updateTaskHandle;</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;  <span class="keyword">volatile</span> <span class="keywordtype">int</span>       m_updateTaskFuncSuspended;             <span class="comment">// 0 = enabled, &gt;0 suspended</span></div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;  <span class="keyword">volatile</span> <span class="keywordtype">bool</span>      m_updateTaskRunning;</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;};</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;} <span class="comment">// end of namespace</span></div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;</div><div class="ttc" id="structfabgl_1_1_r_g_b888_html"><div class="ttname"><a href="structfabgl_1_1_r_g_b888.html">fabgl::RGB888</a></div><div class="ttdoc">Represents a 24 bit RGB color. </div><div class="ttdef"><b>Definition:</b> displaycontroller.h:218</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_ae9fe36cfadae1c50e2198d484dc1d6dd"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#ae9fe36cfadae1c50e2198d484dc1d6dd">fabgl::ST7789Controller::suspendBackgroundPrimitiveExecution</a></div><div class="ttdeci">void suspendBackgroundPrimitiveExecution()</div><div class="ttdoc">Suspends drawings. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.cpp:696</div></div>
<div class="ttc" id="group___enumerations_html_ggacafd29e9adc4dc4055558e61fd4599c9af5b6b419fa27f5fa080c74870b404358"><div class="ttname"><a href="group___enumerations.html#ggacafd29e9adc4dc4055558e61fd4599c9af5b6b419fa27f5fa080c74870b404358">fabgl::NativePixelFormat::RGB565BE</a></div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_a8898066d3c8344c336c523c932a940e4"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#a8898066d3c8344c336c523c932a940e4">fabgl::ST7789Controller::getViewPortWidth</a></div><div class="ttdeci">int getViewPortWidth()</div><div class="ttdoc">Determines horizontal size of the viewport. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.h:173</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_a6a8defc198bdeab89d5a4f85c46496cf"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#a6a8defc198bdeab89d5a4f85c46496cf">fabgl::ST7789Controller::setScreenRow</a></div><div class="ttdeci">void setScreenRow(int value)</div><div class="ttdoc">Set initial top row of the viewport. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.cpp:257</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_a9995071b752bf5d941b12066e7707cae"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#a9995071b752bf5d941b12066e7707cae">fabgl::ST7789Controller::begin</a></div><div class="ttdeci">void begin(SPIClass *spi, gpio_num_t DC, gpio_num_t RESX=GPIO_UNUSED, gpio_num_t CS=GPIO_UNUSED)</div><div class="ttdoc">Initializes ST7789 display controller with Arduino style SPIClass object. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.cpp:167</div></div>
<div class="ttc" id="displaycontroller_8h_html"><div class="ttname"><a href="displaycontroller_8h.html">displaycontroller.h</a></div><div class="ttdoc">This file contains fabgl::DisplayController definition. </div></div>
<div class="ttc" id="group___enumerations_html_gacafd29e9adc4dc4055558e61fd4599c9"><div class="ttname"><a href="group___enumerations.html#gacafd29e9adc4dc4055558e61fd4599c9">fabgl::NativePixelFormat</a></div><div class="ttdeci">NativePixelFormat</div><div class="ttdoc">This enum defines the display controller native pixel format. </div><div class="ttdef"><b>Definition:</b> displaycontroller.h:402</div></div>
<div class="ttc" id="fabutils_8h_html_aefe36b84395404eaeb2fb7bc8dfa9266"><div class="ttname"><a href="fabutils_8h.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a></div><div class="ttdeci">int16_t Y1</div><div class="ttdef"><b>Definition:</b> fabutils.h:106</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_a37416675309b62ed2b7a3f17efba4e60"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#a37416675309b62ed2b7a3f17efba4e60">fabgl::ST7789Controller::getViewPortHeight</a></div><div class="ttdeci">int getViewPortHeight()</div><div class="ttdoc">Determines vertical size of the viewport. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.h:176</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_ae46ddfa7006c4ed0585837ea78deff12"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#ae46ddfa7006c4ed0585837ea78deff12">fabgl::ST7789Controller::getScreenWidth</a></div><div class="ttdeci">int getScreenWidth()</div><div class="ttdoc">Determines the screen width in pixels. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.h:179</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_a91c5eedda08a22c1cff46d29d66d6d76"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#a91c5eedda08a22c1cff46d29d66d6d76">fabgl::ST7789Controller::screenCol</a></div><div class="ttdeci">int screenCol()</div><div class="ttdoc">Gets initial left column of the viewport. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.h:207</div></div>
<div class="ttc" id="displaycontroller_8h_html_a96db82e580e46e24e2b39dd6c5bf7c21"><div class="ttname"><a href="displaycontroller_8h.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a></div><div class="ttdeci">uint8_t const  * data</div><div class="ttdef"><b>Definition:</b> displaycontroller.h:290</div></div>
<div class="ttc" id="fabutils_8h_html"><div class="ttname"><a href="fabutils_8h.html">fabutils.h</a></div><div class="ttdoc">This file contains some utility classes and functions. </div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_ac131174a70010ee80caf11844fdd822c"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#ac131174a70010ee80caf11844fdd822c">fabgl::ST7789Controller::nativePixelFormat</a></div><div class="ttdeci">NativePixelFormat nativePixelFormat()</div><div class="ttdoc">Represents the native pixel format used by this display. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.h:170</div></div>
<div class="ttc" id="namespacefabgl_html"><div class="ttname"><a href="namespacefabgl.html">fabgl</a></div><div class="ttdef"><b>Definition:</b> canvas.cpp:31</div></div>
<div class="ttc" id="structfabgl_1_1_rect_html"><div class="ttname"><a href="structfabgl_1_1_rect.html">fabgl::Rect</a></div><div class="ttdoc">Represents a rectangle. </div><div class="ttdef"><b>Definition:</b> fabutils.h:162</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_ace68c596a133c7129e76c704a8df8570"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#ace68c596a133c7129e76c704a8df8570">fabgl::ST7789Controller::getScreenHeight</a></div><div class="ttdeci">int getScreenHeight()</div><div class="ttdoc">Determines the screen height in pixels. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.h:182</div></div>
<div class="ttc" id="fabutils_8h_html_aacc253365e856de8781b525223af3c52"><div class="ttname"><a href="fabutils_8h.html#aacc253365e856de8781b525223af3c52">X2</a></div><div class="ttdeci">int16_t X2</div><div class="ttdef"><b>Definition:</b> fabutils.h:107</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_a098b59863c47b44466a290cab12a07fd"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#a098b59863c47b44466a290cab12a07fd">fabgl::ST7789Controller::resumeBackgroundPrimitiveExecution</a></div><div class="ttdeci">void resumeBackgroundPrimitiveExecution()</div><div class="ttdoc">Resumes drawings after suspendBackgroundPrimitiveExecution(). </div><div class="ttdef"><b>Definition:</b> ST7789Controller.cpp:704</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_acf840900c37cf9c53d6a64a8666658ae"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#acf840900c37cf9c53d6a64a8666658ae">fabgl::ST7789Controller::setScreenCol</a></div><div class="ttdeci">void setScreenCol(int value)</div><div class="ttdoc">Set initial left column of the viewport. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.cpp:247</div></div>
<div class="ttc" id="fabglconf_8h_html"><div class="ttname"><a href="fabglconf_8h.html">fabglconf.h</a></div><div class="ttdoc">This file contains FabGL library configuration settings, like number of supported colors...</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html">fabgl::ST7789Controller</a></div><div class="ttdoc">Display driver for ST7789 based OLED display, with SPI connection. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.h:74</div></div>
<div class="ttc" id="fabutils_8h_html_a3e43b2629ffdaba77fe72f8f70818f07"><div class="ttname"><a href="fabutils_8h.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a></div><div class="ttdeci">int16_t Y2</div><div class="ttdef"><b>Definition:</b> fabutils.h:108</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_af8654e6ae31a0c196275274e3ff242f2"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#af8654e6ae31a0c196275274e3ff242f2">fabgl::ST7789Controller::setResolution</a></div><div class="ttdeci">void setResolution(char const *modeline, int viewPortWidth=-1, int viewPortHeight=-1, bool doubleBuffered=false)</div><div class="ttdoc">Sets ST7789 resolution and viewport size. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.cpp:214</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_a8fbc059860a6b5e9c8ce85ae1bb78c38"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#a8fbc059860a6b5e9c8ce85ae1bb78c38">fabgl::ST7789Controller::screenRow</a></div><div class="ttdeci">int screenRow()</div><div class="ttdoc">Gets initial top row of the viewport. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.h:214</div></div>
<div class="ttc" id="classfabgl_1_1_s_t7789_controller_html_a7f4f19414b09ba852822a7e73f01b28d"><div class="ttname"><a href="classfabgl_1_1_s_t7789_controller.html#a7f4f19414b09ba852822a7e73f01b28d">fabgl::ST7789Controller::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdoc">Performs display hardware and software. </div><div class="ttdef"><b>Definition:</b> ST7789Controller.h:221</div></div>
<div class="ttc" id="fabutils_8h_html_a0dd601bb81c34d0e0e1c71e445d8c9ed"><div class="ttname"><a href="fabutils_8h.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a></div><div class="ttdeci">int16_t X1</div><div class="ttdef"><b>Definition:</b> fabutils.h:105</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_10a80204b5b551c852b7cab5e1f7cbce.html">dispdrivers</a></li><li class="navelem"><a class="el" href="_s_t7789_controller_8h.html">ST7789Controller.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
